package com.changpay.zywy.mvp.model


import com.changpay.zywy.base.BaseModel
import com.changpay.zywy.http.RetrofitHelper
import com.changpay.zywy.mvp.contract.ForgetPasswordContract
import com.changpay.zywy.bean.HttpResult
import io.reactivex.Observable

/**
 * Created by chenxz on 2018/5/27.
 */
class ForgetModel : BaseModel(), ForgetPasswordContract.Model {
    override fun revisePassword(
        phone: String,
        code: String,
        password: String,
        comfitPassword: String
    ): Observable<HttpResult<Any>> {
        return RetrofitHelper.service.revisePassword(phone, code, password, comfitPassword)
    }

    override fun getCode(phone: String, type: String): Observable<HttpResult<Any>> {
        return RetrofitHelper.service.GetCode(phone, type)
    }

}